$(document).ready(function() {
    var $parent = $('.nt_weather_main_01');
    var $lcolumn = $parent.find('.container-one-leftb').height();
    var $rcolumn = $parent.find('.container-one-lefta .c1left_a2').height();
    var $diff = $lcolumn - $rcolumn - 36;
    if ($(window).width() > 960){
        if ($diff > 0 ){
            $parent.find('.container-one .container-one-right').css({
                'margin-top': ( -1 * $diff ) + 'px'
            });   
        }  
    }
    else{
        $parent.find('.container-one .container-one-right').css({
            'margin-top': '0px'
        }); 
    }
    if(isMobile.any()=="Android" || isMobile.any()=="iPhone" || isMobile.any()=="iPad" || isMobile.any()=="iPod" || isMobile.any()=="BlackBerry" || isMobile.any()=="Symbian"){
        $(".container-three .container-three-left .parsys.containerthree-containerthreeleft .str_pleca_01.section").remove();
        $(".container-three .container-three-left .parsys.containerthree-containerthreeleft .akamai.section").remove();
        
    }
    
    $(window).resize(function() {
        $lcolumn = $parent.find('.container-one-leftb').height();
        $rcolumn = $parent.find('.container-one-lefta .c1left_a2').height();
        $diff = $lcolumn - $rcolumn - 36;
        if ($(window).width() > 960){
            if ($diff > 0 ){
                $parent.find('.container-one .container-one-right').css({
                    'margin-top': ( -1 * $diff ) + 'px'
                });   
            }  
        }
        else{
            $parent.find('.container-one .container-one-right').css({
                'margin-top': '0px'
            }); 
        }
    });
});

var isMobile = {
    Android: function() {
        return navigator.userAgent.match(/Android/i);
    },
    BlackBerry: function() {
        return navigator.userAgent.match(/BlackBerry/i);
    },
    iOS: function() {
        return navigator.userAgent.match(/iPhone|iPad|iPod/i);
    },
    Opera: function() {
        return navigator.userAgent.match(/Opera Mini/i);
    },
    Windows: function() {
        return navigator.userAgent.match(/IEMobile/i);
    },
    any: function() {
        return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
    }
};